export class Point{
    x:number=0;
    y:number=0;
    constructor(x:number,y:number){
        this.x=x;
        this.y=y;

    }
    get_distance(other:Point):number{
        return Math.sqrt(Math.pow((this.x - other.x),2)+Math.pow((this.y - other.y),2))
    }
}

let point1:Point = new Point(0,0)
console.log(point1);
let p2:Point = new Point(1,1)
console.log(p2);
let distance:number = p2.get_distance(point1)
console.log(distance);
